package com.kmzx.one.project.service;

import com.kmzx.one.project.others.dto.MateCateOutInfo;
import com.kmzx.one.project.others.dto.MaterialDetailInfo;
import com.kmzx.one.project.others.dto.PagedMateOutInfo;
import com.kmzx.one.project.others.dto.UserMateOutInfo;

import java.util.List;

public interface MaterialService {

    List<MateCateOutInfo> findAllMaterialCategory(String userId) throws Exception;

    PagedMateOutInfo findAllMaterialById(String cateId, Integer pageNum, Integer pageSize, String userId) throws Exception;

    MaterialDetailInfo findAllMaterialDetail(String mateId, String userId) throws Exception;

    UserMateOutInfo findUserMaterialStore(String userId,Integer pageNum,Integer pageSize);

    int doUserMaterialStore(String mateId,String userId);

    int downloadMaterial(String mateId,String userId);

}
